VirtualTimeSchedulerBase.GetService(Type) method¶
Defined in
Type: VirtualTimeSchedulerBaseSystem.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
protected virtual object? GetService(Type serviceType)
Summary: Discovers scheduler services by interface type. The base class implementation supports only the IStopwatchProvider service. To influence service discovery - such as adding support for other scheduler services - derived types can override this method.
Parameters
| Name | Type | Description |
|---|---|---|
serviceType | Type | Scheduler service interface type to discover. |
Returns: object? -- Object implementing the requested service, if available; null otherwise.